<template>
  <div v-if="question" class="paragraph">
    <el-form label-width="100px" size="mini">
      <el-form-item label="提示信息：">
        <el-input v-model="question.topic"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: "edit-i-paragraph",
    props: ['question'],
    methods:{
      onSubmit(){
        this.$emit('edit',this.question)
      }
    }
  }
</script>

<style lang="scss">
  .paragraph{
    margin-top: 20px;
  }
</style>
